package com.ruoyi.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mes.mapper.QualityMapper;
import com.ruoyi.mes.domain.Quality;
import com.ruoyi.mes.service.IQualityService;

/**
 * 质量数据信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
@Service
public class QualityServiceImpl implements IQualityService 
{
    @Autowired
    private QualityMapper qualityMapper;

    /**
     * 查询质量数据信息
     * 
     * @param dataId 质量数据信息主键
     * @return 质量数据信息
     */
    @Override
    public Quality selectQualityByDataId(Long dataId)
    {
        return qualityMapper.selectQualityByDataId(dataId);
    }

    /**
     * 查询质量数据信息列表
     * 
     * @param quality 质量数据信息
     * @return 质量数据信息
     */
    @Override
    public List<Quality> selectQualityList(Quality quality)
    {
        return qualityMapper.selectQualityList(quality);
    }

    /**
     * 新增质量数据信息
     * 
     * @param quality 质量数据信息
     * @return 结果
     */
    @Override
    public int insertQuality(Quality quality)
    {
        return qualityMapper.insertQuality(quality);
    }

    /**
     * 修改质量数据信息
     * 
     * @param quality 质量数据信息
     * @return 结果
     */
    @Override
    public int updateQuality(Quality quality)
    {
        return qualityMapper.updateQuality(quality);
    }

    /**
     * 批量删除质量数据信息
     * 
     * @param dataIds 需要删除的质量数据信息主键
     * @return 结果
     */
    @Override
    public int deleteQualityByDataIds(Long[] dataIds)
    {
        return qualityMapper.deleteQualityByDataIds(dataIds);
    }

    /**
     * 删除质量数据信息信息
     * 
     * @param dataId 质量数据信息主键
     * @return 结果
     */
    @Override
    public int deleteQualityByDataId(Long dataId)
    {
        return qualityMapper.deleteQualityByDataId(dataId);
    }
}
